export class MSPDITransfer {
    static convert(data) {
        return data.tasks.map((x) => {
            return {
                id: x.id,
                name: x.text,
                start: x.start_date,
                end: x.end_date,
                type: x.type,
                progress: x.progress,
                parent: x.parent,
                // custom_class: x.type === 'milestone' ? 'bar-milestone' : 'bar-task',
            }
        });
    }
}